<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="generator" content="ApiGen 2.7.0" />

	<title>Class Mekayotl_database_sqlite_Adapter | nort</title>

	<script type="text/javascript" src="resources/combined.js?1481722677"></script>
	<script type="text/javascript" src="elementlist.js?1094816827"></script>
	<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?1567499433" />

</head>

<body>
<div id="left">
	<div id="menu">
		<a href="index.html" title="Overview"><span>Overview</span></a>


		<div id="groups">
			<h3>Packages</h3>
			<ul>
				<li><a href="package-App.html">App<span></span></a>
						<ul>
				<li><a href="package-App.Saas.html">Saas</a>
						</li>
				<li><a href="package-App.saas.html">saas</a>
						</li>
				<li><a href="package-App.SaaS.html">SaaS<span></span></a>
						<ul>
				<li><a href="package-App.saas.Logic.html">Logic</a>
						</li>
				<li><a href="package-App.SaaS.SaaS.html">SaaS</a>
						</li>
				<li><a href="package-App.Saas.Tables.html">Tables</a>
						</li>
				<li><a href="package-App.Saas.Vo.html">Vo</a>
						</li>
							</ul></li></ul></li>
				<li><a href="package-aqua.html">aqua<span></span></a>
						<ul>
				<li><a href="package-aqua.tools.html">tools<span></span></a>
						<ul>
				<li><a href="package-aqua.tools.Monitor.html">Monitor</a>
						</li>
							</ul></li></ul></li>
				<li><a href="package-flashservices.html">flashservices<span></span></a>
						<ul>
				<li><a href="package-flashservices.adapters.html">adapters</a>
						</li>
				<li><a href="package-flashservices.debug.html">debug</a>
						</li>
				<li><a href="package-flashservices.exception.html">exception</a>
						</li>
				<li><a href="package-flashservices.filters.html">filters</a>
						</li>
				<li><a href="package-flashservices.io.html">io</a>
						</li>
				<li><a href="package-flashservices.sql.html">sql</a>
						</li>
				<li><a href="package-flashservices.util.html">util</a>
						</li>
							</ul></li>
				<li class="active"><a href="package-Mekayotl.html">Mekayotl<span></span></a>
						<ul>
				<li><a href="package-Mekayotl.core.html">core</a>
						</li>
				<li class="active"><a href="package-Mekayotl.database.html">database<span></span></a>
						<ul>
				<li><a href="package-Mekayotl.database.dal.html">dal</a>
						</li>
				<li><a href="package-Mekayotl.database.mysql.html">mysql</a>
						</li>
				<li class="active"><a href="package-Mekayotl.database.sqlite.html">sqlite</a>
						</li>
							</ul></li>
				<li><a href="package-Mekayotl.tools.html">tools<span></span></a>
						<ul>
				<li><a href="package-Mekayotl.tools.render.html">render<span></span></a>
						<ul>
				<li><a href="package-Mekayotl.tools.render.html.html">html</a>
						</li>
							</ul></li>
				<li><a href="package-Mekayotl.tools.renders.html">renders</a>
						</li>
							</ul></li></ul></li>
				<li><a href="package-None.html">None</a>
						</li>
				<li><a href="package-PHP.html">PHP</a>
						</li>
				<li><a href="package-PHPMailer.html">PHPMailer</a>
						</li>
				<li><a href="package-Services.html">Services<span></span></a>
						<ul>
				<li><a href="package-Services.JSON.html">JSON</a>
						</li>
							</ul></li>
				<li><a href="package-Swift.html">Swift<span></span></a>
						<ul>
				<li><a href="package-Swift.ByteStream.html">ByteStream</a>
						</li>
				<li><a href="package-Swift.CharacterStream.html">CharacterStream</a>
						</li>
				<li><a href="package-Swift.Encoder.html">Encoder</a>
						</li>
				<li><a href="package-Swift.Events.html">Events</a>
						</li>
				<li><a href="package-Swift.KeyCache.html">KeyCache</a>
						</li>
				<li><a href="package-Swift.Mailer.html">Mailer</a>
						</li>
				<li><a href="package-Swift.Mime.html">Mime</a>
						</li>
				<li><a href="package-Swift.Plugins.html">Plugins</a>
						</li>
				<li><a href="package-Swift.Transport.html">Transport</a>
						</li>
							</ul></li>
			</ul>
		</div>

		<hr />


		<div id="elements">
			<h3>Classes</h3>
			<ul>
				<li class="active"><a href="class-Mekayotl_database_sqlite_Adapter.html">Mekayotl_database_sqlite_Adapter</a></li>
			</ul>





		</div>
	</div>
</div>

<div id="splitter"></div>

<div id="right">
<div id="rightInner">
	<form id="search">
		<input type="hidden" name="cx" value="" />
		<input type="hidden" name="ie" value="UTF-8" />
		<input type="text" name="q" class="text" />
		<input type="submit" value="Search" />
	</form>

	<div id="navigation">
		<ul>
			<li>
				<a href="index.html" title="Overview"><span>Overview</span></a>
			</li>
			<li>
				<a href="package-Mekayotl.database.sqlite.html" title="Summary of Mekayotl\database\sqlite"><span>Package</span></a>
			</li>
			<li class="active">
<span>Class</span>			</li>
		</ul>
		<ul>
			<li>
				<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
			</li>
		</ul>
		<ul>
		</ul>
	</div>

<div id="content" class="class">
	<h1>Class Mekayotl_database_sqlite_Adapter</h1>


	<div class="description">
	
<p>Clase de control de acceso a SQLite</p>

	</div>

	<dl class="tree">
		<dd style="padding-left:0px">
			<a href="class-Mekayotl_database_SQLAbstract.html"><span>Mekayotl_database_SQLAbstract</span></a>
			
			
			
		</dd>
		<dd style="padding-left:30px">
			<img src="resources/inherit.png" alt="Extended by" />
<b><span>Mekayotl_database_sqlite_Adapter</span></b>			
			
			
		</dd>
	</dl>








	<div class="info">
		
		
		
		<b>Package:</b> <a href="package-Mekayotl.html">Mekayotl</a>\<a href="package-Mekayotl.database.html">database</a>\<a href="package-Mekayotl.database.sqlite.html">sqlite</a><br />

				<b>Copyright:</b>
				Copyright (c) 2008, Cuatromedios.com <a href="http://www.cuatromedios.com">http://www.cuatromedios.com</a><br />
				<b>Author:</b>
				Henry I. Galvez T. &lt;<a
href="mailto:alograg&#64;alograg.me">alograg&#64;<!---->alograg.me</a>&gt;<br />
				<b>Uses:</b>
				<code><code><a href="class-Mekayotl_database_SQLAbstract.html">Mekayotl_database_SQLAbstract</a></code></code> Es utilizado para generar los
filtrados de consulta<br />
		<b>Located at</b> <a href="source-class-Mekayotl_database_sqlite_Adapter.html#15" title="Go to source code">lib/php/mekayotl/database/sqlite/Adapter.php</a><br />
	</div>


	<table class="summary" id="methods">
	<caption>Methods summary</caption>
	<tr data-order="__construct" id="___construct">

		<td class="attributes"><code>
			 public 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#___construct">#</a>
		<code><a href="source-class-Mekayotl_database_sqlite_Adapter.html#26" title="Go to source code">__construct</a>( <span>array|string <var>$oConfig</var> = <span class="php-quote">'sqlite://root:@localhost/test'</span></span> )</code>

		<div class="description short">
			
<p>Pre-configura el objeto</p>

		</div>

		<div class="description detailed hidden">
			
<p>Pre-configura el objeto</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$oConfig</var></dt>
					<dd><code>array|string</code><br> Se espera un array asociativo para asignar variables o un URL de acceso [@link
<a
href="http://mx.php.net/manual/es/function.parse-url.php">http://mx.php.net/manual/es/function.parse-url.php</a>]</dd>
				</dl></div>




				<h4>Overrides</h4>
				<div class="list"><code><a href="class-Mekayotl_database_SQLAbstract.html#_">Mekayotl_database_SQLAbstract::__construct</a></code></div>

		</div>
		</div></td>
	</tr>
	<tr data-order="getDSN" id="_getDSN">

		<td class="attributes"><code>
			 protected 
			string
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_getDSN">#</a>
		<code><a href="source-class-Mekayotl_database_sqlite_Adapter.html#41" title="Go to source code">getDSN</a>( )</code>

		<div class="description short">
			
<p>Genera los DNS para una conexión con PDO</p>

		</div>

		<div class="description detailed hidden">
			
<p>Genera los DNS para una conexión con PDO</p>




				<h4>Returns</h4>
				<div class="list">
					<code>string</code><br>El string DNS de conexión<br />
				</div>


				<h4>Uses</h4>
				<div class="list">
						Mekayotl_database_SQLAbstract::$pdo Lo utiliza para generar el PDO [@link <a
href="http://mx.php.net/manual/es/pdo.construct.php">http://mx.php.net/manual/es/pdo.construct.php</a>]<br />
				</div>


		</div>
		</div></td>
	</tr>
	<tr data-order="getFields" id="_getFields">

		<td class="attributes"><code>
			 protected 
			array
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_getFields">#</a>
		<code><a href="source-class-Mekayotl_database_sqlite_Adapter.html#65" title="Go to source code">getFields</a>( <span>resource <var>$resultset</var></span> )</code>

		<div class="description short">
			
<p>Obtiene los campos de una consulta</p>

		</div>

		<div class="description detailed hidden">
			
<p>Obtiene los campos de una consulta</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$resultset</var></dt>
					<dd><code>resource</code><br> El resource del cual se quieren los campos</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code>array</code><br>Los campos de la consulta<br />
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="doQuery" id="_doQuery">

		<td class="attributes"><code>
			 protected 
			mixed
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_doQuery">#</a>
		<code><a href="source-class-Mekayotl_database_sqlite_Adapter.html#86" title="Go to source code">doQuery</a>( <span>string <var>$sql</var></span> )</code>

		<div class="description short">
			
<p>Ejecuta una consulta SQL</p>

		</div>

		<div class="description detailed hidden">
			
<p>Ejecuta una consulta SQL</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$sql</var></dt>
					<dd><code>string</code><br> Un SQL bien formado</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code>mixed</code><br>El resource obtenido de la ejecución del SQL o lo implementado en la clase<br />
				</div>


				<h4>Uses</h4>
				<div class="list">
						<code><code><a href="class-Mekayotl_database_SQLAbstract.html#_">Mekayotl_database_SQLAbstract::select()</a></code></code><br>Lo utiliza para ejecutar
el SQL que genera<br />
						<code><code><a href="class-Mekayotl_database_SQLAbstract.html#_">Mekayotl_database_SQLAbstract::insert()</a></code></code><br>Lo utiliza para ejecutar
el SQL que genera<br />
						<code><code><a href="class-Mekayotl_database_SQLAbstract.html#_">Mekayotl_database_SQLAbstract::replace()</a></code></code><br>Lo utiliza para ejecutar
el SQL que genera<br />
						<code><code><a href="class-Mekayotl_database_SQLAbstract.html#_">Mekayotl_database_SQLAbstract::update()</a></code></code><br>Lo utiliza para ejecutar
el SQL que genera<br />
						<code><code><a href="class-Mekayotl_database_SQLAbstract.html#_">Mekayotl_database_SQLAbstract::delete()</a></code></code><br>Lo utiliza para ejecutar
el SQL que genera<br />
						<code><code><a href="class-Mekayotl_database_SQLAbstract.html#_">Mekayotl_database_SQLAbstract::pivotSelect()</a></code></code><br>Lo utiliza para
ejecutar el SQL que genera<br />
						<code><code><a href="class-Mekayotl_database_SQLAbstract.html#_">Mekayotl_database_SQLAbstract::batchInsert()</a></code></code><br>Lo utiliza para
ejecutar el SQL que genera<br />
						<code><code><a href="class-Mekayotl_database_SQLAbstract.html#_">Mekayotl_database_SQLAbstract::batchReplace()</a></code></code><br>Lo utiliza para
ejecutar el SQL que genera<br />
						<code><code><a href="class-Mekayotl_database_SQLAbstract.html#_">Mekayotl_database_SQLAbstract::batchUpdate()</a></code></code><br>Lo utiliza para
ejecutar el SQL que genera<br />
				</div>


		</div>
		</div></td>
	</tr>
	<tr data-order="count" id="_count">

		<td class="attributes"><code>
			 public 
			integer
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_count">#</a>
		<code><a href="source-class-Mekayotl_database_sqlite_Adapter.html#151" title="Go to source code">count</a>( <span>resource <var>$resultset</var></span> )</code>

		<div class="description short">
			
<p>Cuenta los registros devueltos por una consulta</p>

		</div>

		<div class="description detailed hidden">
			
<p>Cuenta los registros devueltos por una consulta</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$resultset</var></dt>
					<dd><code>resource</code><br> El resource del cual se quiere el conteo</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code>integer</code><br>La cantidad de registros<br />
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="setFetchMode" id="_setFetchMode">

		<td class="attributes"><code>
			 public 
			mixed
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_setFetchMode">#</a>
		<code><a href="source-class-Mekayotl_database_sqlite_Adapter.html#163" title="Go to source code">setFetchMode</a>( <span>integer <var>$mode</var></span>, <span>string|object <var>$class</var> = <span class="php-quote">'stdClass'</span></span>, <span>array <var>$ctorargs</var> = <span class="php-keyword1">array</span>()</span> )</code>

		<div class="description short">
			
<p>Asigna el tipo de retorno de una búsqueda de registro de una consulta</p>

		</div>

		<div class="description detailed hidden">
			
<p>Asigna el tipo de retorno de una búsqueda de registro de una consulta</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$mode</var></dt>
					<dd><code>integer</code><br> Tipo de retorno de fetch</dd>
					<dt><var>$class</var></dt>
					<dd><code>string|object</code><br> Nombre de la clase u objeto de retorno</dd>
					<dt><var>$ctorargs</var></dt>
					<dd><code>array</code><br> Opciones de construcción de clase especifica</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code>mixed</code><br>This<br />
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="fetch" id="_fetch">

		<td class="attributes"><code>
			 public 
			mixed
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_fetch">#</a>
		<code><a href="source-class-Mekayotl_database_sqlite_Adapter.html#180" title="Go to source code">fetch</a>( <span>resource <var>$resultset</var></span> )</code>

		<div class="description short">
			
<p>Obtener el registro siguiente del recurso</p>

		</div>

		<div class="description detailed hidden">
			
<p>Obtener el registro siguiente del recurso</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$resultset</var></dt>
					<dd><code>resource</code><br> El resource del cual se quiere el conteo</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code>mixed</code><br>Una variable de tipo de formato según fetchmode<br />
				</div>


				<h4>Uses</h4>
				<div class="list">
						<code><code><a href="class-Mekayotl_database_SQLAbstract.html#_">Mekayotl_database_SQLAbstract::fetchAll()</a></code></code><br>Lo utiliza para generar
los elementos del array<br />
				</div>


		</div>
		</div></td>
	</tr>
	<tr data-order="fetchAll" id="_fetchAll">

		<td class="attributes"><code>
			 public 
			array
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_fetchAll">#</a>
		<code><a href="source-class-Mekayotl_database_sqlite_Adapter.html#215" title="Go to source code">fetchAll</a>( <span>resource <var>$resultset</var></span> )</code>

		<div class="description short">
			
<p>Obtener el registro siguiente del recurso</p>

		</div>

		<div class="description detailed hidden">
			
<p>Obtener el registro siguiente del recurso</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$resultset</var></dt>
					<dd><code>resource</code><br> El resource del cual se quiere el conteo</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code>array</code><br>Un array con todos los registros según fetchmode<br />
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="resetFetch" id="_resetFetch">

		<td class="attributes"><code>
			 public 
			mixed
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_resetFetch">#</a>
		<code><a href="source-class-Mekayotl_database_sqlite_Adapter.html#239" title="Go to source code">resetFetch</a>( <span>resource <var>$resultset</var></span> )</code>

		<div class="description short">
			
<p>Regresa el apuntador de registros al primero</p>

		</div>

		<div class="description detailed hidden">
			
<p>Regresa el apuntador de registros al primero</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$resultset</var></dt>
					<dd><code>resource</code><br> El resource del cual se quiere el conteo</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code>mixed</code><br>This<br />
				</div>


				<h4>Uses</h4>
				<div class="list">
						<code><code><a href="class-Mekayotl_database_SQLAbstract.html#_">Mekayotl_database_SQLAbstract::fetchAll()</a></code></code><br>Lo utiliza para
reiniciar el apuntador al primer registro<br />
				</div>


		</div>
		</div></td>
	</tr>
	</table>

	<table class="summary inherited">
	<caption>Methods inherited from <a href="class-Mekayotl_database_SQLAbstract.html#methods">Mekayotl_database_SQLAbstract</a></caption>
	<tr>
		<td><code>
			<a href="class-Mekayotl_database_SQLAbstract.html#_">__destruct()</a>, 
			<a href="class-Mekayotl_database_SQLAbstract.html#_">__get()</a>, 
			<a href="class-Mekayotl_database_SQLAbstract.html#_">__toString()</a>, 
			<a href="class-Mekayotl_database_SQLAbstract.html#_">batchInsert()</a>, 
			<a href="class-Mekayotl_database_SQLAbstract.html#_">batchReplace()</a>, 
			<a href="class-Mekayotl_database_SQLAbstract.html#_">batchUpdate()</a>, 
			<a href="class-Mekayotl_database_SQLAbstract.html#_">clean()</a>, 
			<a href="class-Mekayotl_database_SQLAbstract.html#_">delete()</a>, 
			<a href="class-Mekayotl_database_SQLAbstract.html#_">insert()</a>, 
			<a href="class-Mekayotl_database_SQLAbstract.html#_">pivotSelect()</a>, 
			<a href="class-Mekayotl_database_SQLAbstract.html#_">query()</a>, 
			<a href="class-Mekayotl_database_SQLAbstract.html#_">replace()</a>, 
			<a href="class-Mekayotl_database_SQLAbstract.html#_">select()</a>, 
			<a href="class-Mekayotl_database_SQLAbstract.html#_">setConfig()</a>, 
			<a href="class-Mekayotl_database_SQLAbstract.html#_">toCSV()</a>, 
			<a href="class-Mekayotl_database_SQLAbstract.html#_">toXML()</a>, 
			<a href="class-Mekayotl_database_SQLAbstract.html#_">update()</a>
		</code></td>
	</tr>
	</table>




	<table class="summary inherited">
	<caption>Constants inherited from <a href="class-Mekayotl_database_SQLAbstract.html#constants">Mekayotl_database_SQLAbstract</a></caption>
	<tr>
		<td><code>
			<a href="class-Mekayotl_database_SQLAbstract.html#FETCH_ASSOC"><b>FETCH_ASSOC</b></a>, 
			<a href="class-Mekayotl_database_SQLAbstract.html#FETCH_BOTH"><b>FETCH_BOTH</b></a>, 
			<a href="class-Mekayotl_database_SQLAbstract.html#FETCH_CLASS"><b>FETCH_CLASS</b></a>, 
			<a href="class-Mekayotl_database_SQLAbstract.html#FETCH_INTO"><b>FETCH_INTO</b></a>, 
			<a href="class-Mekayotl_database_SQLAbstract.html#FETCH_NUM"><b>FETCH_NUM</b></a>, 
			<a href="class-Mekayotl_database_SQLAbstract.html#FETCH_OBJ"><b>FETCH_OBJ</b></a>
		</code></td>
	</tr>
	</table>



	<table class="summary inherited">
	<caption>Properties inherited from <a href="class-Mekayotl_database_SQLAbstract.html#properties">Mekayotl_database_SQLAbstract</a></caption>
	<tr>
		<td><code>
			<a href="class-Mekayotl_database_SQLAbstract.html#$_dbname"><var>$_dbname</var></a>, 
			<a href="class-Mekayotl_database_SQLAbstract.html#$_driver"><var>$_driver</var></a>, 
			<a href="class-Mekayotl_database_SQLAbstract.html#$_fetchMode"><var>$_fetchMode</var></a>, 
			<a href="class-Mekayotl_database_SQLAbstract.html#$_fetchObject"><var>$_fetchObject</var></a>, 
			<a href="class-Mekayotl_database_SQLAbstract.html#$_password"><var>$_password</var></a>, 
			<a href="class-Mekayotl_database_SQLAbstract.html#$_pdo"><var>$_pdo</var></a>, 
			<a href="class-Mekayotl_database_SQLAbstract.html#$_server"><var>$_server</var></a>, 
			<a href="class-Mekayotl_database_SQLAbstract.html#$_user"><var>$_user</var></a>, 
			<a href="class-Mekayotl_database_SQLAbstract.html#$query"><var>$query</var></a>
		</code></td>
	</tr>
	</table>


</div>

	<div id="footer">
		nort API documentation generated by <a href="http://apigen.org">ApiGen 2.7.0</a>
	</div>
</div>
</div>
</body>
</html>
